//
//  ZCOrderDetailAddressCell.m
//  ZCJZ
//
//  Created by sujeking on 2019/3/7.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import "ZCOrderDetailAddressCell.h"
#import "TBCityIconFont.h"
#import <Masonry.h>
@interface ZCOrderDetailAddressCell()

@property (weak, nonatomic) IBOutlet UILabel *namephoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UIImageView *limv;

@end

@implementation ZCOrderDetailAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupSubViews];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setupSubViews {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
  self.addressLabel.textColor = [generalToolBox getColorWithHexadecimalColorStr:@"0x666666"];
    self.limv.image = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e632", 40, [generalToolBox getColorWithHexadecimalColorStr:@"0x666666"])];
    UIView *line = [UIView new];
  line.backgroundColor = [generalToolBox getColorWithHexadecimalColorStr:@"0xf4f4f4"];
    [self.contentView addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(12);
        make.height.mas_equalTo(1);
        make.bottom.mas_equalTo(0);
    }];
    
    self.namephoneLabel.text = nil;
    self.addressLabel.text = nil;
}

- (void)setData:(NSArray *)data {
    _data = data;
    NSString *name = [NSString stringWithFormat: @"%@ %@",data.firstObject,data[1]];
    self.namephoneLabel.text = name;
    self.addressLabel.text = data.lastObject;
}


@end
